const { ccclass, property } = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    onLoad() {
        //GAudio.init();

        //GAudio.init({AudioPath: "aaa"})

        //GAudio.init({AudioPath: "aaa", BgmPath: "bbb", ok: "mm"})

        // GAudio.preloadBgm("bgm1");

        // GAudio.preloadEffect("effect1");

        //GAudio.preloadAllBgm();

        //GAudio.preloadAll();

        //GAudio.init({BgmDefault: "bgm2"});

        //GAudio.playBgm();

        // this.scheduleOnce(()=>{
        //     GAudio.stopBgm();
        // }, 3);

        // this.scheduleOnce(()=>{
        //     GAudio.pauseBgm();
        // }, 3);

        // this.scheduleOnce(()=>{
        //     GAudio.resumeBgm();
        // }, 6);

        // this.schedule(()=>{
        //     console.warn("audioModeChange", GAudio.audioModeChange())
        // }, 2, 3);
        this.schedule(()=>{
            GAudio.playEffect("effect1");
        }, 2, 3);

        this.schedule(()=>{
            GAudio.playEffect("effect4");
        }, 1, 6);

    }

}